package cn.com.api.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Delete;  
import org.apache.ibatis.annotations.Insert;  
import org.apache.ibatis.annotations.Select;  
import org.apache.ibatis.annotations.Update; 

import cn.com.api.entity.ApiU_user_label;
import cn.com.api.mapper.base.U_user_labelMapperBase;

//DAO
public interface ApiU_user_labelMapper extends U_user_labelMapperBase {

	//查找是否有相同的Label
	public ApiU_user_label findLabelByIds(@Param("user_id") String u_id, @Param("parent_id") String parent_id, @Param("label_id") String label_id);

	//删除指定用户下的所有Label
	public void delLabelByUid(@Param("user_id") String u_id, @Param("type") int type); 
	
	//查检用户档案中是否设置了兴趣
	public Integer checkUserLabel(@Param("user_id") String u_id, @Param("type") int type);
	
	public List<ApiU_user_label> findLabelByMap(@Param("map") Map map);
}


